
function dateUtils(date) {
    var month=date.getMonth()+1;
    var dateStr='';
    dateStr+=date.getFullYear();
    dateStr+='-'+month;
    dateStr+='-'+date.getDate();
    dateStr+=' '+date.getHours();
    dateStr+=':'+date.getMinutes();
    dateStr+=':'+date.getSeconds();
    return dateStr;
}
